Adwaita: stack switcher button needs-attention fix.
authorLapo Calamandrei <calamandrei@gmail.com>
Tue, 22 Jul 2014 07:42:22 +0000 (09:42 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Tue, 22 Jul 2014 07:42:22 +0000 (09:42 +0200)
Don't draw the dot when the stack switcher button is active.

gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index 08a123dba7a186f5073fa9dbf833a632ff86afed..89fa4acacda2eafd9ec1d266377a90cd7668df89 100644 (file)
@@ -406,9 +406,14 @@ GtkLabel {
                                       to(transparent));
       background-size: 6px 6px, 6px 6px;
       background-repeat: no-repeat;
-      background-position: right 2px, right 3px;
+      background-position: right 3px, right 4px;
       &:backdrop { background-size: 6px 6px, 0 0;}
     }
+    &.needs-attention:active > GtkLabel,
+    &.needs-attention:active > GtkImage {
+      animation: none;
+      background-image: none;
+    }
   }
 
   //inline-toolbar buttons
index 23fd35916f6186b256e4de4b7b4e6a11bb97207e..9270d36d32c733bdcc94811572a8eb340a95025a 100644 (file)
       background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#215d9c), to(transparent)), -gtk-gradient(radial, center center, 0, center center, 0.5, to(white), to(transparent));
       background-size: 6px 6px, 6px 6px;
       background-repeat: no-repeat;
-      background-position: right 2px, right 3px; }
+      background-position: right 3px, right 4px; }
       .stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher > .button.needs-attention > GtkImage:backdrop {
         background-size: 6px 6px, 0 0; }
+    .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher > .button.needs-attention:active > GtkImage {
+      animation: none;
+      background-image: none; }
   .inline-toolbar .button, .inline-toolbar .button:backdrop {
     border-radius: 2px;
     border-width: 1px; }
index 1daaf3455e592fa01d53f1aaadcc50ee594546ca..adf73e2bec98d8b2821c7871aa39575ec9802caa 100644 (file)
       background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(#4a90d9), to(transparent)), -gtk-gradient(radial, center center, 0, center center, 0.5, to(white), to(transparent));
       background-size: 6px 6px, 6px 6px;
       background-repeat: no-repeat;
-      background-position: right 2px, right 3px; }
+      background-position: right 3px, right 4px; }
       .stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher > .button.needs-attention > GtkImage:backdrop {
         background-size: 6px 6px, 0 0; }
+    .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher > .button.needs-attention:active > GtkImage {
+      animation: none;
+      background-image: none; }
   .inline-toolbar .button, .inline-toolbar .button:backdrop {
     border-radius: 2px;
     border-width: 1px; }